package cn.hongwei.factorybean;

import cn.hongwei.config.Config;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Great
 * @email 1224028994@qq.com
 * 测试类
 */
public class TestMoreIOC {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(Config.class);
        System.out.println(context.getBean("&myFactoryBean"));
        System.out.println(context.getBean("&mySmart"));
    }
}
